﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using libStorage;

namespace libBook
{
    public class Book
    {
        /// <summary>
        /// Book title
        /// </summary>
        [StorableField("Name")]
        public string Title { get; set; }

        /// <summary>
        /// Book author
        /// </summary>
        [StorableField("Author")]
        public Author Author { get; set; }

        /// <summary>
        /// Book publisher
        /// </summary>
        [StorableField("Publisher")]
        public Publisher Publisher { get; set; }

        /// <summary>
        /// Year the book was published
        /// </summary>
        [StorableField("Year")]
        public DateTime Year { get; set; }

        /// <summary>
        /// Genre of the book
        /// </summary>
        [StorableField("Genre")]
        public string Genre { get; set; }

        /// <summary>
        /// Rating of the book given by the user
        /// </summary>
        [StorableField("Rating")]
        public Rating Rating { get; set; }

        /// <summary>
        /// The date the user read the book
        /// </summary>
        [StorableField("ReadingDate")]
        public DateTime ReadingDate { get; set; }

        /// <summary>
        /// Picture of the book cover
        /// </summary>
        [StorableField("Picture")]
        public Bitmap Picture { get; set; }
    }
}
